package demo6;

import java.util.Objects;

public class People {
    private String name;
    private int age;
    private int ID;

    public People(String name, int age, int ID) {
        this.name = name;
        this.age = age;
        this.ID = ID;
    }

    @Override
    public String toString() {
        return "People{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", ID=" + ID +
                '}';
    }

    @Override
    public int hashCode() {
        return Objects.hash(name, age, ID);
    }
}
